Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printEnvVariablesToFile.py overwrites itself if invoked without arguments #24487

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joar
Copy link

@joar joar commented Nov 25, 2024

I saw the command in my terminal when launching the editor, was curious to see what it did, so I ran it again without arguments, expecting to get a --help-like message, instead it ended up overwriting itself.

This change changes the script's default behavior (default being the invocation without arguments) from overwriting itself to throwing an exception about a missing output file argument.

…ents

I was the command in my terminal when launching the editor, was curious to see what it did, so I ran it again without arguments, expecting to get a `--help`-like message, instead it ended up overwriting itself.

This change changes the script's default behavior (default being the invocation without arguments) from overwriting itself to throwing an exception about a missing output file argument.
karthiknadig
karthiknadig previously approved these changes Nov 25, 2024
@karthiknadig karthiknadig self-assigned this Nov 25, 2024
@vs-code-engineering vs-code-engineering bot added this to the November 2024 milestone Nov 25, 2024
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Nov 25, 2024
@joar
Copy link
Author

joar commented Nov 25, 2024

Lint fails disproportionately to my contributions.

@joar
Copy link
Author

joar commented Nov 25, 2024

Opened #24488 to fix ruff 0.8.0 issues.

Edit: I also saw that #24484 is WIP

@karthiknadig
Copy link
Member

Thanks for the PR fixing the bug and all the linting fixes. This is awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants